package org.xjc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Author : XJC
 * @Description :角色
 * @create : 2022/8/26 14:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Entity
@Table(name = "T_ROLE")
@TableName("T_ROLE")
public class RoleEntity extends BaseEntity {

    @Column(name = "ROLE_CODE",columnDefinition = "varchar2(64)")
    @TableField("ROLE_CODE")
    private String roleCode;

    @TableField("ROLE_NAME")
    @Column(name = "ROLE_NAME",columnDefinition = "varchar2(64)")
    private String roleName;

    public String getRoleCode() {
        return this.roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return this.roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}

